package io.javac.diff_javaee;
import io.javac.diff_javaee.Utils.DiffUtils;
/**
 * Created by Pencilso on 2017/5/2.
 */
public class MainDiff {
    static {
        System.loadLibrary("diff");//装载动态链接库，记得把开头的“lib”去掉+
        System.out.println("java.library.path:" + System.getProperty("java.library.path"));
    }

    public static void main(String args[]) {
        System.out.println("正在生成差异包");
        String oldApk = "/Diff-JavaEE/apk/old.apk"; //旧的apk包路径
        String newApk = "/Diff-JavaEE/apk/new.apk"; //新的apk包路径
        String patch = "/Diff-JavaEE/apk/new.patchPath";//差异包生成路径
        DiffUtils.diffFile(oldApk, newApk, patch);
        System.out.println("差异包生成成功");

    }
}